package com.luo.chengrui.module.sa.convert.commontree;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import com.luo.chengrui.module.sa.controller.admin.commontree.vo.*;
import com.luo.chengrui.module.sa.dal.dataobject.commontree.CommonTreeDO;

/**
 * 通用树 Convert
 *
 * @author 诚睿
 */
@Mapper
public interface CommonTreeConvert {

    CommonTreeConvert INSTANCE = Mappers.getMapper(CommonTreeConvert.class);

    CommonTreeDO convert(CommonTreeCreateReqVO bean);

    CommonTreeDO convert(CommonTreeUpdateReqVO bean);

    CommonTreeRespVO convert(CommonTreeDO bean);

    List<CommonTreeRespVO> convertList(List<CommonTreeDO> list);

    PageResult<CommonTreeRespVO> convertPage(PageResult<CommonTreeDO> page);

    List<CommonTreeExcelVO> convertList02(List<CommonTreeDO> list);

}
